package com.caesi.tacacaesifinal;

import android.app.ActivityGroup;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;


public class ListarResultados extends ActivityGroup {
	static TabHost tabHost;
	static int tab = -1;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_tabs);

		Resources res = getResources();
		tabHost = (TabHost) findViewById(R.id.tabhost);
		tabHost.setup(this.getLocalActivityManager());
		TabHost.TabSpec spec;
		Intent intent;

		

		
		intent = new Intent().setClass(this, Resultado_Oitavas.class);
		spec = tabHost.newTabSpec("0").setIndicator("OIVATAS", res.getDrawable(R.drawable.marcador))
				.setContent(intent);
		tabHost.addTab(spec);

		
		intent = new Intent(this, Resultado_Quartas.class);
		spec = tabHost.newTabSpec("1")
				.setIndicator("QUARTAS", res.getDrawable(R.drawable.marcador))
				.setContent(intent);
		tabHost.addTab(spec);

		
		intent = new Intent().setClass(this,Resulatado_Semi.class);
		spec = tabHost
				.newTabSpec("2")
				.setIndicator("SEMI",
						res.getDrawable(R.drawable.marcador))
				.setContent(intent);
		tabHost.addTab(spec);

		
		intent = new Intent().setClass(this, Resultado_Final.class);
		spec = tabHost.newTabSpec("3")
				.setIndicator("FINAL", res.getDrawable(R.drawable.marcador))
				.setContent(intent);
		tabHost.addTab(spec);

		

		tabHost.setCurrentTab(0);

	}

}
